from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^gma/', include('gma.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
        
    (r'^index/$', 'gma.game.views.index_re') ,

    (r'^$', 'gma.game.views.index_re') ,

    (r'^index/interreact/(?P<first>.*)/(?P<other>.*)/$', 'gma.game.views.interreact') ,
    
    (r'^index/interreact/box2/$', 'gma.game.views.box2') ,
    
    (r'^index/interreact/box1/$', 'gma.game.views.box1') ,
    
    (r'^index/status/signal/$', 'gma.game.views.exchange_signal') ,
    
    (r'^index/interreact/exchange/$', 'gma.game.views.interreact_action') ,  
    
    (r'^index/interrupt/(?P<me>.*)/$', 'gma.game.views.interrupt') ,

    (r'^index/login/$', 'gma.game.views.alogin') ,

    (r'^accounts/login/$', 'gma.game.views.alogin') ,

    (r'^index/log/$', 'gma.game.views.login') ,
    
    (r'^index/logout/$', 'gma.game.views.logout') ,

    (r'^index/register/$', 'gma.game.views.aregister') ,

    (r'^index/getlist/$', 'gma.game.views.getlist') ,
    
    (r'^index/get_msg_list/$', 'gma.game.views.get_msg_list') ,
    
    (r'^index/send_msg/$', 'gma.game.views.send_msg') ,

    (r'^index/reg/$', 'gma.game.views.register') ,

    (r'^index/char/$', 'gma.game.views.char_panel') ,

    (r'^index/char/inv/$', 'gma.game.views.show_inventory') ,
    
    (r'^index/char/inv/async/$', 'gma.game.views.show_inventory_async') ,

    (r'^index/item_act/$', 'gma.game.views.item_action') ,

    (r'^index/render/(?P<cell>.*)/$', 'gma.game.views.render') ,

    (r'^index/create/$', 'gma.game.views.create_char') ,

    (r'^index/save/$', 'gma.game.views.save_char') ,

    (r'^index/cell/create/$', 'gma.game.views.edit_cell') ,

    (r'^index/cell/save/$', 'gma.game.views.save_cell') ,
    
    (r'^index/item/create/$', 'gma.game.views.edit_item') ,
    
    (r'^index/item/take/(?P<id>.*)/(?P<proc>.*)/$', 'gma.game.views.take_item') ,

    (r'^index/item/save/$', 'gma.game.views.save_item') ,
        
    (r'^index/files/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/re 2.0.7.1/gma/public/templates/files/'}),

    (r'^index/docs/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/re 2.0.7.1/gma/public/documents/'}) 
    
    #(r'^index/files/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/gma/www/gma/public/templates/files/'}),

    #(r'^index/docs/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/gma/www/gma/public/documents/'}) 


)

    
